Video object behavior in a user interface

ABSTRACT

In one embodiment, presenting a video in a user interface in a first presentation mode of a plurality of presentation modes, each presentation mode has a specific size for presenting a visual portion of the video and a specific volume for presenting an audio portion of the video; and in response to a user interaction with the video in the first presentation mode, transitioning the video to a second presentation mode, comprising: changing the visual portion of the video from a first size of the first presentation mode to a second size of the second presentation mode; and changing the audio portion of the video from a first volume of the first presentation mode to a second volume of the second presentation mode.

RELATED APPLICATION(S)

This application claims the benefit, under 35 U.S.C. §119(e), of U.S.Provisional Patent Application No. 61/593,841, filed 1 Feb. 2012, whichis incorporated herein by reference.

TECHNICAL FIELD

This disclosure generally relates to presenting multimedia objects, suchas images or videos, in a user interface.

BACKGROUND

A user interface (UI), in the industrial design field of human-machineinteraction, is the space where interactions between humans and machinesoccur. The goal of interactions between a human, often referred to as a“user”, and a machine at the user interface is user's control of themachine and its operations (e.g., through user input) and machinefeedback (e.g., through program output). A graphical user interface(GUI) is a type of user interface that allows users to interact withsoftware applications executing on electronic or computing devicesthrough multimedia objects (e.g., images, videos, audios, etc.) ratherthan purely text commands.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates a portion of an example object hierarchy.

FIGS. 2A-2D illustrate example modes for presenting a video object in auser interface.

FIGS. 3A-3C illustrate example modes for presenting an image object in auser interface.

FIG. 4 illustrates an example map associated with a geo-tag attached toan image.

FIGS. 5A-5D illustrate an example transition of an image between twopresentation modes.

FIGS. 6A-6G illustrate example user manipulations of folded images.

FIG. 7 illustrates rotating a floating image.

FIGS. 8A-8B illustrate simulating an object being picked up in athree-dimensional virtual space.

FIG. 9 illustrates an example method that enables a user to manipulatean image or a video.

FIG. 10 illustrates an example electronic device.

DESCRIPTION OF EXAMPLE EMBODIMENTS

In particular embodiments, a user interface (UI), and more specifically,a graphical user interface (GUI) may include any number of UI componentsor elements arranged in a hierarchy. The components of a user interfacemay be presented to users according to the hierarchical structure. Inparticular embodiments, some of these UI components may correspond to orrepresent multimedia objects, such as images, videos, or audios.Sometimes, these multimedia UI components may be presented to usersindividually on their own. Other times, they may be presented to userswhile contained in other UI components, such as being included in awindow, a panel, or a web page. In particular embodiments, there may bemultiple presentations modes for presenting images or videos in a userinterface.

In particular embodiments, a user may interact with a multimedia UIcomponent using a suitable input device (e.g., a finger or stylus on atouch-sensitive screen or a mouse). For example, the user may play orpause a video, or zoom or pan or rotate an image. In particularembodiments, depending on how or where a multimedia UI component ispresented to a user (e.g., which presentation mode it is in), the user'sinteraction with the multimedia UI component may result in differentbehaviors from the multimedia UI component.

Object Hierarchy

In particular embodiments, objects may be organized into a hierarchy.For example, objects may be organized into a hierarchy based on how theindividual objects are related to each other. The object hierarchy mayhave any number of levels, and at each level, there may be any number ofobjects. Parent-child or sibling relationships may exist betweenspecific objects in the hierarchy. Within the hierarchy, a parent objectis one level above the level of its child objects. Two sibling objectsare at the same level and share the same parent object. In addition, anyportion of the hierarchy may also be considered a hierarchy in itself.

FIG. 1 illustrates a portion of an example object hierarchy 100 thatincludes a number of objects 110. In particular embodiments, an objectin a hierarchy may or may not have a parent. If an object does not havea parent, it may be referred to as a “root” object (e.g., object 110A).In particular embodiments, an object in a hierarchy may or may not haveany children. If an object does not have any children, it may bereferred to as a “leaf” or “terminal” object (e.g., object 110B). If anobject does have children (e.g., object 110C), it may have any number ofchildren. In addition, objects sharing the same parent may be referredto as each other's “siblings”. For example, in FIG. 1, object 110C isthe parent of objects 110D and 110B. Objects 110D and 110B are thechildren of object 110C and are siblings to each other. Thus, ahierarchy of objects (e.g., object hierarchy 100) not only includes theindividual objects themselves but also indicates the relationships amongthe specific objects. Moreover, the position of a specific object withinthe hierarchy may indicate its relationships with other objects in thehierarchy.

Objects may be of any applicable types. In particular embodiments, anobject may be a component of a user interface. In this case, the objecthierarchy may be a UI hierarchy (e.g., a hierarchy of UI components). Inother words, components of a user interface may be organized into ahierarchy. The UI hierarchy may have any number of layers correspondingto the levels of the object hierarchy, and at each layer, there may beany number of UI components. The position of a specific UI componentwithin the hierarchy may indicate its relationships with other UIcomponents in the hierarchy. The UI components may be presented to usersaccording to the hierarchical structure (e.g., in layers). In particularembodiments, some of these UI components may be multimedia objects, suchas images, videos, or audios.

In particular embodiments, an object may correspond to a piece ofuser-consumable content. In particular embodiments, an object may beconsumed by a user if the user may, for example and without limitation,interact with, view, read, listen to, manipulate, or handle the object.For example, some user-consumable objects may be texts, images, videos,audios, feeds, executables (e.g., application programs or games),websites, web pages, digital books, photo albums, posts, or messages. Inparticular embodiments, user-consumable content, or more specifically,user-consumable objects, may be organized into a hierarchy based on, forexample, the relationships among the individual pieces ofuser-consumable content. Consequently, a hierarchy of user-consumablecontent may be represented as a hierarchy of objects, where individualobjects in the hierarchy may correspond to specific pieces ofuser-consumable content (e.g., texts, images, videos, audios,executables, etc.). In addition, the structure of the hierarchyindicates the relationships among the specific pieces of user-consumablecontent.

In particular embodiments, the relationships among the objects in ahierarchy may correspond to how the objects are organized and presentedto users. In particular embodiments, when presenting a hierarchy ofobjects to a user of a device, the objects may be organized andpresented according to the structure of the object hierarchy. Morespecifically, the objects may be presented in a user interface providedon the device according to the structure of the object hierarchy so thatthe user interface itself becomes hierarchical as well. Consequently,the user interface may include a number of layers, respectivelycorresponding to the levels in the object hierarchy. The positions ofthe objects within the hierarchy are preserved in the user interface,such that a specific object at a specific position in the hierarchy ispresented in the corresponding position in the user interface. Therelationships among the objects within the hierarchy are maintained inthe user interface. In other words, there may be an one-to-onecorrespondence between an object in the object hierarchy and a UIcomponent in the user interface, such that each object is represented bya UI component.

As an example, in the context of the desktop of a computing device, thedesktop may be a parent object, and sometimes the root object of ahierarchy, whose child objects are the individual software applicationsavailable on the desktop. A software application, while itself being oneof the child objects of the desktop, is also the parent object of theindividual components of that software application. Different softwareapplications may include different components. For example, for asoftware application that manages digital books (e.g., a book readerapplication), its components may include the digital books available,the individual chapters of each book, the pages of each chapter, and thetexts, images, videos, audios, or any graphical user interface (GUI) orcontent or media elements on each page. Each of these also correspondsto an object in the hierarchy. More specifically, when these objects areorganized in a hierarchy, the book application may be the parent objectof the digital books. A digital book may be the parent object of theindividual chapters of that book. A chapter, while itself being one ofthe child objects of the book, is also the parent object of the pages inthat chapter. A page is the parent object of the texts, images, videos,audios, or any GUI or content or media elements on that page. A textblock, image, video, audio, or GUI or content or media element is one ofthe child objects of the page to which it belongs. Similarly, for asoftware application that manages news feeds, its components may includethe individual news channels and the news stories within each channel.Each of these may correspond to an object. When these objects arearranged in a hierarchy, the news-feed application, while itself beingone of the child objects of the desktop, is also the parent object ofthe news channels. A news channel in turn is the parent object of thenews stories included in that channel. Some of these objects mayrespectively correspond to UI components of a user interface presentedon the computing device.

As another example, in the context of the Internet or the World WideWeb, the Internet may be a parent object whose child objects are theindividual websites. A website, while itself being one of the childobjects of the Internet, is also the parent object of the individual webpages of that website. A web page, while itself being one of the childobjects of the website to which it belongs, is the parent object of thetexts, images, videos, audios, or links (e.g., Uniform Resource Locators(URLs)) included in the web page. Each text block, image, video, audio,or link may also correspond to a specific object in the hierarchy. Someof these objects may respectively correspond to UI components of aweb-based user interface that may be presented to a user through a webbrowser.

As a third example, a website, such as a social-networking website, mayalso be arranged in such a hierarchical structure for navigating thecontent of the social-networking website. In this context, thesocial-networking website may be a parent object whose child objects arethe components (e.g., photo albums, user profile pages, etc.) of thewebsite. For example, a photo album, while itself being a child objectof the social-networking website, may in turn be a parent object, andthe individual photos within the album may be the child objects of thephoto album. A user's profile page may be structured in such ahierarchical fashion as well. The profile page itself may be considereda parent object, and the individual objects on the profile page may bethe child objects of the profile page. In particular embodiments, aprofile page may be considered and rendered (e.g., for presentation to auser) as a linear timeline of objects, such as, for example and withoutlimitation, photos, photo albums, check-ins, comments from other users,attended events, tags, etc. In particular embodiments, child objects inthe hierarchy may also include applications the user has added to theprofile page, such as a Spotify music sharing application. Moreover,individual stories, songs the user has listened to, and playlists may bechild objects at a lower hierarchical level. In particular embodiments,child objects in the hierarchy may include particular sections of auser's profile, such as the user's education and employment information,or the public “wall” of the user's profile page. This disclosurecontemplates representing and addressing any collection of content in ahierarchical object or nodal structure. Again, these objects mayrespectively correspond to UI components of a web-based user interfacethat may be presented to a user through a web browser.

As these examples illustrate, an object may be of any type and thisdisclosure contemplates any applicable types of objects. For example andwithout limitation, the term “object” may refer to any type of content,including but not limited to images, videos, captions, text blocks orboxes, user interface elements, URLs, newsfeed stories, references toother objects, advertisements, calendar events, units for displayingopen graph analysis that may be graphically rendered, applications,websites, web pages, books, chapters. In particular embodiments, given ahierarchy of objects, which may be a portion of another, largerhierarchy of objects, the hierarchical relationships (e.g., parent-childor sibling relationships, positions of the objects within the hierarchy)between specific objects may direct some aspects of how these objectsbehave in the context of a user interface or how the objects arepresented to a user.

Video Object

In particular embodiments, an object in a hierarchy may be a video,which may be presented to a user for viewing. Consequently, there may bea video component in a user interface corresponding to the video object.In particular embodiments, there may be several modes for presenting avideo object in a user interface, and this disclosure contemplates anyapplicable presentation modes for presenting video objects. The videoobject may be presented to a user in any one of these available modes.There may be different video components in the user interface forpresenting the video object in different modes.

In particular embodiments, a video object may be presented in a userinterface in an index mode (also referred to as table-of-content (TOC)mode), as illustrated in FIG. 2A. Sometimes, a video object may beincluded in an index of user-consumable content or in a table ofcontent, and the index mode may be suitable for presenting the videoobject in such a situation. As an example, a digital book may include anumber of chapters; each chapter may include a number of pages; and eachpage may include a number of text blocks, images, videos, etc. Theseobjects (e.g., book, chapter, page, text block, image, video, etc.) maybe organized in a hierarchy, and each of these objects may correspond toa UI component. As illustrated in FIG. 2A, given a specific chapter, thepages in that chapter may be presented in a table of content (TOC) 211so that a user may browse through these pages quickly and perhaps selecta specific page to read in further detail. Suppose that a specific page213 includes a video 215. Video 215 may be presented in TOC 211, as apart of page 213, in the index mode. Video 215 may be shown in athumbnail (i.e., small) size, in proportion to the sizes of page 213 andTOC 211. As another example, a social-networking website may include anumber of user accounts; each user account may include a number of mediafolders or albums (among other items); and each media folder may includea number of videos or images. Again, these objects (e.g., website, useraccount, media folder, video, image, etc.) may be organized in ahierarchy. Given a specific media folder, the videos in that folder maybe presented in an index of video objects so that a user may browsethrough these videos and perhaps select a specific video for playback.In this case, each video object may be presented in the index mode.

In particular embodiments, a video object may be presented in a userinterface in an on-page mode, as illustrated in FIG. 2B. Sometimes, avideo object may be included in another UI component (e.g., a web page,a page of a book, etc.). When this other UI component is presented, thevideo object may be presented as a part of this other UI component. Theon-page mode may be suitable for presenting the video object in such asituation. As an example, as illustrated in FIG. 2B, suppose that a page223 of a digital book includes a video 225. When page 223 is presented,video 225 is presented as a part of page 223, in the on-page mode,together with other content of page 223. Video 225 may be shown in asize that is appropriate or in proportion to the size of page 223 (e.g.,half or a quarter of the size of page 223). As another example, a webpage may include a video object. When the web page is presented (e.g.,displayed in a web browser), the video object may be presented in theweb page and as a part of the web page in the on-page mode, togetherwith other content of the web page.

In particular embodiments, a video object may be presented in a userinterface in a full-screen mode, as illustrated in FIG. 2C. Sometimes, avideo object may be presented by itself. The full-screen mode may besuitable for presenting the video object in such a situation. Forexample, as illustrated in FIG. 2C, a video 235 is presented in thefull-screen mode where it may be the only or the main UI componentdisplayed on the screen of a device and may occupy substantially theentire display area of the screen (e.g., greater than 90% of the displayarea of the screen or 100% of the display area of the screen).

A user may interact with a video object presented in any of theavailable modes, and in particular embodiments, depending on which modethe video object is in, the user's interaction with the video object mayresult in different behavioral responses. In some cases, the user'sinteraction with the video object in one presentation mode may cause thevideo object to automatically transition to another presentation mode.

In particular embodiments, while in each of the presentation modes(e.g., index mode, on-page mode, full-screen mode), there may beplayback control icons or buttons associated with a video object (e.g.,icon 217 in FIG. 2A, icon 227 in FIG. 2B, icon 237 in FIG. 2C). A usermay tap on these control icons to cause the video to start or pauseplaying. For example, while the video is being played, a pause icon(e.g., icon 237 in FIG. 2C) may be associated with the video. The usermay tap on the pause icon to cause the video to pause playing. On theother hand, while the video is paused, a play icon (e.g., icon 227 inFIG. 2B) may be associated with the video. The user may tap on the playicon to cause the video to start or resume playing. The user may startor stop playback of the video at any time.

In particular embodiments, while a video object is presented in theindex mode, such as video 215 in FIG. 2A, the user may single tap anypart of video 215 or pinch open video 215 (e.g., using two fingers on atouch-sensitive screen), which may cause the video object to transitionto the on-page mode, such as video 225 in FIG. 2B. In particularembodiments, while a video object is presented in the on-page mode, suchas video 225 in FIG. 2B, the user may single tap any part of video 225or pinch open video 225, which may cause the video object to transitionto the full-screen mode, such as video 235 in FIG. 2C. Conversely, inparticular embodiments, while a video object is presented in thefull-screen mode, such as video 235 in FIG. 2C, the user may double tapany part of video 235 or pinch close video 235 (e.g., using two fingerson a touch-sensitive screen), which may cause the video object totransition to the on-page mode, such as video 225 in FIG. 2B. Inparticular embodiments, while a video object is presented in the on-pagemode, such as video 225 in FIG. 2B, the user may double tap any part ofvideo 225 or pinch close video 225, which may cause the video object totransition to the index mode, such as video 215 in FIG. 2A.

In particular embodiments, while a video object transitions from onepresentation mode to another presentation mode, the playback status ofthe video is unaffected. That is, if the video is being played while themode transition occurs, the video continues to play, until either theuser stops the playback or the video ends. On the other hand, if thevideo is paused while the mode transition occurs, the video continues topause. The user may pause or resume playback of the video using, forexample, the appropriate control icon.

In particular embodiments, there is a consistency between differentpresentation modes. When an object (e.g., image, video) is presented ina user interface and the object is being manipulated by a user (e.g.,picked up, rotated, zoomed in or out, etc.), the object itself, not theUI component representing the object, is manipulated. This ensures theself-consistency of the user interface. For example, while a video isbeing played, the user may manipulate the video object (e.g., pincheddown to the index mode or pinched up to the full-screen mode). While thevideo object is being manipulated by the user, the playback of the videocontinues uninterrupted.

In particular embodiments, while in the index mode (e.g., video 215 inFIG. 2A) or the on-page mode (e.g., video 225 in FIG. 2B), if the userclicks or taps the play icon to start playing a video, the video mayautomatically transition to the full-screen mode (e.g., video 235 inFIG. 2C) and the control icon may fade away. Conversely, in particularembodiments, while in the full-screen mode, if the user pauses or stopsthe playback of the video or if the video ends, the video mayautomatically transition back to the index mode or the on-page mode(i.e., the original mode in which the video had been presented when theuser had caused the video to transition to the full-screen mode bystarting the playback).

In particular embodiments, when a video object transitions from onepresentation mode to another presentation mode, the display size for thevisual portion of the video may change accordingly. For example, whentransitioning from the index mode to the on-page mode, the size of thevideo images (i.e., the visual portion of the video) may increaseappropriately. Similarly, when transitioning from the on-page mode tothe full-screen mode, the size of the video images may increase tooccupy the entire display area of the screen. Conversely, whentransitioning from the full-screen mode to the on-page mode or from theon-page mode to the index mode, the size of the video images maydecrease appropriately. In other words, there may be a suitable size forpresenting the visual portion of a video object in each specific mode,and while the video object is presented in a specific mode, its visualportion is presented in the corresponding size for that mode.

In particular embodiments, when a video object transitions from onepresentation mode to another presentation mode, the volume level for theaudio portion of the video may change accordingly. In other words, theremay be a suitable volume level for presenting the audio portion of avideo object in each specific mode, and while the video object ispresented in a specific mode, its audio is presented in thecorresponding volume level for that mode. For example, while in theindex mode, the audio of the video object may be presented in a lowervolume level so that it does not create much disturbance. While in theon-page mode, the audio of the video object may be presented in a volumelevel that is somewhat higher (e.g., louder) than that of the indexmode. While in the full-screen mode, the audio of the video object maybe presented in a volume level that is somewhat higher (e.g., louder)than that of the on-page mode (e.g., a higher volume level). While ineach presentation mode, the user may manually adjust (e.g., increase ordecrease) the volume level of the audio of the video object to overridethe default volume level for that mode as desired.

In particular embodiments, while in the index mode (e.g., video 215 inFIG. 2A), if a video is being played, the user may not be able to stopthe playback directly in the index mode. Instead, the user needs totransition to the on-page mode (e.g., video 225 in FIG. 2B) first andthen uses the pause icon to pause or stop the playback of the video.

In particular embodiments, while in the on-page mode (e.g., video 225 inFIG. 2B), a video object may “float” on top of the UI componentcontaining that video object. For example, as illustrated in FIG. 2B,video 225 floats on top of page 223, and this floating status isvisually indicated by showing a small portion (e.g., the top edge) ofvideo 225 slightly outside the boundary of page 223. In particularembodiments, the components of a user interface may be presentedaccording to a hierarchical structure. In this case, page 223 may be theparent object of video 225. Thus, page 223 may be at one layer beneaththe layer of video 225 in the user interface. Page 223 and video 225 aretwo separate UI components corresponding to two objects. In particularembodiments, a floating video object indicates that a user may interactwith that video object.

In particular embodiments, while in the on-page mode (e.g., video 225 inFIG. 2B), if a video is being played and the user navigates away fromthe UI component (e.g., the page) containing the video, the currentposition of the video may be recorded. If the user comes back to the UIcomponent (e.g., the page) containing the video object at a later time,the video may resume playback from the position where the user has leftit.

In particular embodiments, while in the full-screen mode, the playbackcontrol icon (e.g., icon 237 in FIG. 2C) associated with a video maydisappear after it has not been used for a while (e.g., a few seconds)or if the user taps on the video. Only the video itself is presented onthe screen, as illustrated in FIG. 2D, so that the user may watch thevideo undisturbed. The user may bring back the control icon by singletapping the video in the full-screen mode (e.g., video 235 in FIG. 2D)in order to pause or resume playback of the video. In other words, whilein the full-screen mode, single tapping on the video may cause theplayback control icon associated with the video to appear or disappear.In particular embodiments, while in the full-screen mode, there may be atime indicator (e.g., slider icon 239 in FIG. 2C) associated with thevideo indicating how much time has elapsed in the video as well asenabling the user to jump to different positions in the video (e.g., beselecting a specific position along slider icon 239).

In particular embodiments, while in each of the presentation mode, ifthe user indicates that he or she no longer wishes to watch a video by,for example, swiping to the next page or chapter, closing the videoobject, or otherwise navigating away from the video object, the audioportion of the video object may fade out, instead of, for example,stopping abruptly.

Image Object

In particular embodiments, an object in a hierarchy may be an image,which may be presented to a user for viewing. Consequently, there may bean image component in a user interface corresponding to the imageobject. In particular embodiments, there may be several modes forpresenting an image object in a user interface, and this disclosurecontemplates any applicable presentation modes for presenting imageobjects. The image object may be presented to a user in any one of theseavailable modes. There may be different image components in the userinterface for presenting the image object in different modes.

In particular embodiments, an image object may be presented in a userinterface in an index mode (also referred to as table-of-content (TOC)mode), as illustrated in FIG. 3A. Sometimes, an image object may beincluded in an index of user-consumable content or in a table ofcontent, and the index mode may be suitable for presenting the imageobject in such a situation. As an example, a digital book may include anumber of chapters; each chapter may include a number of pages; and eachpage may include a number of text blocks, images, videos, etc. Theseobjects (e.g., book, chapter, page, text block, image, video, etc.) maybe organized in a hierarchy, and each of these objects may correspond toa UI component. As illustrated in FIG. 3A, given a specific chapter, thepages in that chapter may be presented in a table of content (TOC) 311so that a user may browse through these pages quickly and perhaps selecta specific page to read in further detail. Suppose that a specific page313 includes an image 315. Image 315 may be presented in TOC 311, as apart of page 313, in the index mode. Image 315 may be shown in athumbnail (i.e., small) size, in proportion to the sizes of page 313 andTOC 311. Different images may have different sizes or resolutions. Whenan image is included in a page, it may occupy a portion of the page, asin the case of image 315 (e.g., occupying a quarter or half of the page)or it may occupy the entire page, as in the case of image 317. Whenimages 315 and 317 are presented in the index mode, their sizes maydecrease in proportion to the sizes of the pages that contain them. Asanother example, a social-networking website may include a number ofuser accounts; each user account may include a number of media foldersor albums (among other items); and each media folder may include anumber of videos or images. Again, these objects (e.g., website, useraccount, media folder, video, image, etc.) may be organized in ahierarchy. Given a specific media folder, the images in that folder maybe presented in an index of image objects so that a user may browsethrough these images and perhaps select a specific image for viewing. Inthis case, each image object may be presented in the index mode.

In particular embodiments, an image object may be presented in a userinterface in an on-page mode, as illustrated in FIG. 3B. Sometimes, animage object may be included in another UI component (e.g., a web page,a page of a book, etc.). When this other UI component is presented, theimage object may be presented as a part of this other UI component. Theon-page mode may be suitable for presenting the image object in such asituation. As an example, as illustrated in FIG. 3B, suppose that a page323 of a digital book includes an image 325. When page 323 is presented,image 325 is presented as a part of page 323, in the on-page mode,together with other content of page 323. Image 325 may be shown in asize that is appropriate or in proportion to the size of page 323.Different images may have different sizes or resolutions and may occupydifferent areas or portions of a page. For example, an image may occupya quarter of a page (e.g., top-left quarter, top-right quarter,bottom-left quarter, bottom-right quarter) or half of a page (e.g., tophalf, bottom half, left half, right half). As another example, a webpage may include an image object. When the web page is presented (e.g.,displayed in a web browser), the image object may be presented in theweb page and as a part of the web page in the on-page mode, togetherwith other content of the web page.

In particular embodiments, an image object may be presented in a userinterface in a full-screen mode, as illustrated in FIG. 3C. Sometimes,an image object may be presented by itself. The full-screen mode may besuitable for presenting the image object in such a situation. Forexample, as illustrated in FIG. 3C, an image 335 is presented in thefull-screen mode where it may be the only or the main UI componentdisplayed on the screen of a device and may occupy substantially theentire display area of the screen (e.g., greater than 90% of the displayarea of the screen or 100% of the display area of the screen).

In particular embodiments, while an image object is presented in theindex mode, such as image 315 in FIG. 3A, the user may single tap anypart of image 315 or pinch open image 315 (e.g., using two fingers on atouch-sensitive screen), which may cause the image object to transitionto the on-page mode, such as image 325 in FIG. 3B. In particularembodiments, while an image object is presented in the on-page mode,such as image 325 in FIG. 3B, the user may single tap any part of image325 or pinch open image 325, which may cause the image object totransition to the full-screen mode, such as image 335 in FIG. 3C.Conversely, in particular embodiments, while an image object ispresented in the full-screen mode, such as image 335 in FIG. 3C, theuser may double tap any part of image 335 or pinch close image 335(e.g., using two fingers on a touch-sensitive screen), which may causethe image object to transition to the on-page mode, such as image 325 inFIG. 3B. In particular embodiments, while an image object is presentedin the on-page mode, such as image 325 in FIG. 3B, the user may doubletap any part of image 325 or pinch close image 325, which may cause theimage object to transition to the index mode, such as image 315 in FIG.3A.

In particular embodiments, an image object may have multiple croppedversions in addition to the original, full-size image. The croppedversions may be presented in different modes when appropriate. Forexample, when an image object is presented in the index mode or theon-page mode, sometimes, the area for displaying the image may berelatively small in comparison to the size of the image. To fit theimage in the display area, the image may be re-sized down (e.g., to asmaller size) or a cropped version of the image may be displayed. Forexample, as illustrated in FIG. 5A, a cropped version 510 of an image isshown in the on-page mode when the image is included in a page of adigital book. In particular embodiments, when a user single taps orpinches open cropped version 510 of the image to cause the image totransition to the full-screen mode, initially, the image may still beshown in the cropped version, as illustrated in FIG. 5B. However, inFIG. 5B, the cropped version of the image occupies the entire screen ofthe user's device, instead of being included in a page. The image maygradually zoom or pan out, as illustrated in FIG. 5C, until eventuallythe original, complete image is shown, as illustrated in FIG. 5D. Inaddition, in particular embodiments, there may be audio commentaryassociated with an image. While the image is zooming out, as illustratedin FIGS. 5B, 5C, 5D, the audio commentary associate with the image maybe played automatically.

In particular embodiments, while an image object is presented in each ofthe presentation modes (e.g., index mode, on-page mode, full-screenmode), text may be overlaid on top of the image (e.g., text 319 in FIG.3A, text 329 in FIG. 3B, text 339 in FIG. 3C). For example, the text maybe a caption or description of the associated image.

In particular embodiments, while in the on-page mode (e.g., image 325 inFIG. 3B), an image object may “float” on top of the UI componentcontaining that image object. For example, as illustrated in FIG. 3B,image 325 floats on top of page 323, and this floating status isvisually indicated by showing a small portion (e.g., the top edge andbottom edge) of image 325 slightly outside the boundary of page 323. Inparticular embodiments, the components of a user interface may bepresented according to a hierarchical structure. In this case, page 323may be the parent object of image 325. Thus, page 323 may be at onelayer beneath the layer of image 325 in the user interface. Page 323 andimage 325 are two separate UI components corresponding to two objects.In particular embodiments, a floating image object indicates that a usermay interact with that image object.

In particular embodiments, while an image object is presented in thefull-screen mode, a geo-tag may be associated with or attached to theimage object. The geo-tag may represent a geographical location. Forexample, as illustrated in FIG. 3C, a geo-tag, as represented by geo-tagicon 337, is associated with or attached to image 335 in the full-screenmode. When a user interacts with geo-tag icon 337 (e.g., single tap orclick it), the underlying geo-tag may cause a map 400 to be presented,as illustrated in FIG. 4. With some implementations, map 400 may bepresented in the full-screen mode, replacing image 335. Map 400 mayinclude an indicator 401 indicating the geographical location of thesubject matter in image 335 or where image 335 had been taken andanother indicator 403 indicating, if known and enabled by the user anduser's device, the current geographical location of the electronicdevice, and thus its user, displaying the map. In addition, there is aclose icon 405 that enables the user to close map 400 and return to theimage with which the corresponding geo-tag is associated (e.g., image337 in FIG. 3C).

In particular embodiments, while an image object is presented in theon-page mode where the image is included in another UI component (e.g.,a web page, a page of a digital book), sometimes, the display area forthe image is smaller than the size of the image. To fit the image in theavailable display area, in particular embodiments, a portion or acropped version of the original image may be displayed. There may bedifferent ways to crop an image, depending on, for example, thedimension or size of the image, the position of the image in the otherUI component containing the image, or the size of the display area forthe image.

As an example, when an image is presented in the left or right half of apage, the image may be folded in half vertically. FIG. 6A illustrates animage 611 included in a page 610. Image 611 is placed in the left halfof page 610 and is folded in half vertically. As another example, whenan image is presented in the top or bottom half of a page, the image maybe folded in half horizontally. FIG. 6D illustrates an image 621included in a page 620. Image 621 is placed in the top half of page 620and is folded in half horizontally. Both images 611 and 621 arepresented in the on-page mode, being included in pages 610 and 620respectively.

As illustrated in FIG. 6A, image 611 floats on top of page 610, sincethe top and bottom edges of image 611 extend beyond the boundary of page610. Similarly, as illustrated in FIG. 6D, image 621 floats on top ofpage 620, since the top edge of image 621 extends beyond the boundary ofpage 620. In particular embodiments, when a first UI component (e.g.,image, video, text box, URL, caption, etc.) floats on top of a second UIcomponent (e.g., page) that contains the first UI component, it is avisual indication that the first UI component may be manipulated by theuser in various manners.

In particular embodiments, when an image floats on top of a page, suchas in the case of image 611 floating on top of page 610 as illustratedin FIG. 6A or image 621 floating on top of page 620 as illustrated inFIG. 6D, a user may “lift” the image up and off the page by pinching theimage with two fingers through a touch-sensitive screen, as illustratedin FIG. 6G. The two fingers may be placed anywhere near one or moreedges of the image. With a folded image, when the image is pinched upand lifted off the page, the entire image appears, but remains folded atan angle relative to the distance between the two fingers the user usesto pinch the image. If the user pinches out beyond a predetermined orspecified threshold distance (e.g., by moving the two fingers apart) andthen takes his fingers off the image (e.g., by lifting the fingers offthe touch-sensitive screen), the image may transition to the full-screenmode and expand to fill the entire screen. For the example illustratedin FIG. 6G, image 611 has been lifted off page 610 when a user placestwo fingers near the left and right edges of image 611 and pinches image611 up. Image 611 remains folded vertically, but both left and rightsides of image 611 are visible. A horizontally folded image may belifted off a page similarly.

In particular embodiments, once the user has pinched up an image, theuser may drag the image to various positions on the screen or rotate theimage by moving the fingers pinching the image appropriately.

In particular embodiments, to simulate the effect of a two-dimensionalobject (e.g., image) in a three-dimensional virtual space, shadow may beplaced around the object. In particular embodiments, a light source maybe simulated to cause the effect of shadowing around a floating object(e.g., a floating image). The simulated light source may be placed atany position on or off the screen. In the case illustrated in FIG. 6G, asimulated light source 650 is placed in the center of the display screen(e.g., the center of page 610). The shadow around folded image 611 maychange depending on the position of image 611 in relation to simulatedlight source 650. In addition, in particular embodiments, whensimulating the effect of viewing an object in the three-dimensionalvirtual space, the object may be rotated or rolled (e.g., left or right,up or down) as needed or as appropriate to compensate for perspective.

For example, in FIG. 6B, image 611 has been pinched up and moved towardthe left side of the screen (e.g., near the left edge of page 610). Inthis case, there is more, darker shadow on the left side of image 611and less, lighter shadow on the right side of image 611, as the leftside of image 611 faces away from simulated light source 650 and theright side of image 611 faces toward simulated light source 650. Inaddition, to compensate for perspective, image 611 is rotated moretoward the left so that there is more of the right half of image 611shown but less of the left half of image 611 shown. In contrast, in FIG.6C, image 611 has been pinched up and moved toward the right side of thescreen (e.g., near the right edge of page 610). In this case, there ismore, darker shadow on the right side of image 611 and less, lightershadow on the left side of image 611, as the right side of image 611faces away from simulated light source 650 and the left side of image611 faces toward simulated light source 650. In addition, to compensatefor perspective, image 611 is rotated more toward the right so thatthere is more of the left half of image 611 shown but less of the righthalf of image 611 shown. In particular embodiments, when a floatingobject (e.g., floating image 611) is manipulated when in the on-pagemode, other objects, such as page or text objects, layered below thefloating image remain stationary, permitting the user to manipulate thefloating image and read the entire text simultaneously.

Similar shadowing effect may be applied to a floating image when theimage is pinched up and moved toward the top or bottom of the screen.For example, in FIG. 6E, image 621 has been pinched up (e.g., by placingtwo fingers near the top and bottom edges of image 621) and moved towardthe top side of the screen (e.g., near the top edge of page 620). Image621 remains folded horizontally but both the top and bottom sides ofimage 621 are visible. In this case, to compensate for perspective,image 621 is rotated more toward the bottom so that more of the top halfof image 621 is shown. Simulated light source 650 is now placed near thetop of or above the screen so that there is more shadow on the bottomside of image 621 than on the top side of image 621, since the top sideof image 621 faces toward simulated light source 650 and the bottom sideof image 621 faces away from simulated light source 650. In contrast, inFIG. 6F, image 621 has been brought near the bottom of the screen. Atthis position, to compensate for perspective, image 621 is rotated moretoward the top so that more of the bottom half of image 621 is shown.Simulated light source 650 is now placed near the bottom of or below thescreen so that there is more shadow on the top side of image 621 than onthe bottom side of image 621, since the top side of image 621 faces awayfrom simulated light source 650 and the bottom side of image 621 facestoward simulated light source 650.

When a floating object (e.g., a floating image) is pinched up, it may bemoved to different positions on the screen, as illustrated in FIGS. 6B,6C, 6E, 6F. In particular embodiments, it may also be rotated, asillustrated in FIG. 7. In this example, an image 711 contained in a page710 has been pinched up (e.g., using two fingers) and rotated (e.g., byrotating the fingers pinching image 711). The shadow around image 711may rotate with image 711 accordingly to maintain the three-dimensionaleffect. In addition, as illustrated in FIG. 7, a portion of image 711overlays the text beneath it on page 710. In particular embodiments,when a floating object (e.g., image or video) overlays another object(e.g., text) beneath it, the appearance of the object under the floatingobject may be adjusted (e.g., slightly darkened or distorted) tosimulate the effect of the shadow casted by the floating object on theunderlaying object.

In particular embodiments, the shadow of an object (e.g., an image) maybe implemented as a separate layer. For example, in FIG. 7, image 711partially overlaps some text on page 710. There is shadow surroundingimage 711. The text covered by the shadow may be darkened accordingly aswell. In some implementations, the shadow around an object (e.g., animage) may be drawn as a blurry dot, sliced up horizontally andvertically, and then stretched up to fill the necessary shadow area.This allows the shadow of an object to be determined without performingray tracing, which is very computationally intensive and thus resourcedemanding.

In particular embodiments, when a user pinches or picks up an image withtwo fingers (e.g., through a touch-sensitive screen), as long as theuser's fingers are in contact with the image (e.g., by staying incontact with the touch-sensitive screen), the image may move accordingto the movements of the user's fingers. In other words, there may be anone-to-one corresponding interaction between the movements of the user'sfingers and the movements of the image. As an example, when a foldedimage is picked up (e.g., pinched up with two fingers), if the user'sfingers move apart, the image may unfold more so that the two edgespinched by the user's fingers move further apart or the image mayincrease in size. If the user's fingers move closer, the image may foldmore so that the two edges pinched by the user's fingers move closer orthe image may decrease in size. As another example, when an un-foldedimage is picked up (e.g., pinched up with two fingers), its size maychange with the movements of the two fingers. By moving the two fingersfurther apart, the image may be enlarged. Conversely, by moving the twofingers closer together, the size of the image may be decreased. As athird example, if the user's fingers move to different positions on thescreen, the image may follow and move with the user's fingers todifferent positions on the screen and may rotate appropriately tosimulate the effect of viewing the image in a three-dimensional virtualspace (e.g., to compensate for perspective). The shadow around the imagemay move with the image (e.g., as the image fold or unfold, increase ordecrease in size, rotate, pan, etc.).

In particular embodiments, the animation of the image's movements maygive the perception that the user is holding the image at the same twopoints on the image where the user's fingers are in contact with theimage throughout the movements. The locations of the user's fingers maybe projected into the three-dimensional virtual space.

In particular embodiments, when an image is picked up, the animation ofits movements following the user's fingers may be based on springmotions. For example, how much should the image fold or unfold, how muchshould the image rotate, or how much should the image bounce against theedge of the screen, as the user's fingers move may be determined basedon spring motions. In particular embodiments, an image's movements maybe simulated by, supposedly, attaching the image to an imaginary spring.When the user's fingers pick up the image, the supposed force the user'sfingers exert on the image may cause the image to have supposed mass.When an object with mass (e.g., an image with supposed mass) is attachedto a spring, its movements may follow specific physical properties. Inaddition to the mass, the spring may have properties such as, forexample and without limitation, tension, stretch, and dampening. Byselecting various values for these properties, different movements ofthe image may be simulated.

In particular embodiments, to simulate the effect of picking up anobject (e.g., image, video) in the three-dimensional virtual space, whena first object is picked up, a second object beneath the first objectmay be moved backward in the virtual three-dimensional space. Forexample, when image 711 is pinched up, page 710, together with the texton it, may be moved backward to create the visual effect of a greaterdistance between image 711 and page 710, which in turn simulates theeffect of image 711 being picked up from page 710. The shadow casted byimage 711 on page 710 may increase in size accordingly.

The simulation of the effect of picking up a two-dimensional object in avirtual three-dimensional space is further illustrated in FIG. 8. InFIG. 8A, the distance between objects 810 and 820 is D1. A light source830 above object 810 causes object 810 to cast a shadow 841 of object810 onto object 820. In FIG. 8B, object 810 has moved away from object820 and closer to light source 830. The distance between objects 810 and820 is D2, which is greater than D1. Light source 830 again causesobject 810 to cast a shadow 842 of object 810 onto object 820. Butbecause object 810 is now further away from object 820, shadow 842 islarger than shadow 841. Thus, by changing the size of the shadow a firstobject casts onto a second object, it may stimulate the effect that thefirst object is moving away from (e.g., increasing shadow size) ormoving closer toward the second object (e.g., decreasing shadow size).In the case of picking up an image from a page, by changing the size ofthe shadow the image casts onto the page, it may stimulate the effectthat the image is moving away from (e.g., increasing shadow size) ormoving closer toward the page (e.g., decreasing shadow size). When theimage is moving away from the page, it appears that the image is pickedup from the page.

User Manipulation of Image or Video Object

In particular embodiments, an image or video object presented in a userinterface may be manipulated by a user. FIG. 9 illustrates an examplemethod for a user to manipulate an image or a video presented in a userinterface. In particular embodiments, at 910, an image or a video may bepresented in a user interface in one of the available presentation modes(e.g., index mode, on-page mode, full-screen mode). At 920, a user mayinteracts with the image or video. At 930, in response to the userinteraction, the image or the video may be modified. How the image orthe video is actually modified may depend on the presentation mode it isin or the user interaction. For example, as described above, the userinteraction may cause the image or video to transition to a differentpresentation mode, to move or rotate or pan, to increase or decrease itssize, and so on. The steps illustrated in FIG. 9 may be repeated asneeded.

Electronic Device

Particular embodiments may be implemented on one or more electronicdevices or computer systems. FIG. 10 illustrates an example electronicdevice 1000. For example, computer system 1000 may be an embodiment fordevice 110A or device 110B illustrated in FIG. 1. In particularembodiments, one or more computer systems 1000 perform one or more stepsof one or more methods described or illustrated herein. In particularembodiments, one or more computer systems 1000 provide functionalitydescribed or illustrated herein. In particular embodiments, softwarerunning on one or more computer systems 1000 performs one or more stepsof one or more methods described or illustrated herein or providesfunctionality described or illustrated herein. Particular embodimentsinclude one or more portions of one or more computer systems 1000.

This disclosure contemplates any suitable number of computer systems1000. This disclosure contemplates computer system 1000 taking anysuitable physical form. As example and not by way of limitation,computer system 1000 may be an embedded computer system, asystem-on-chip (SOC), a single-board computer system (SBC) (such as, forexample, a computer-on-module (COM) or system-on-module (SOM)), adesktop computer system, a laptop or notebook computer system, aninteractive kiosk, a mainframe, a mesh of computer systems, a mobiletelephone, a personal digital assistant (PDA), a server, or acombination of two or more of these. Where appropriate, computer system1000 may include one or more computer systems 1000; be unitary ordistributed; span multiple locations; span multiple machines; or residein a cloud, which may include one or more cloud components in one ormore networks. Where appropriate, one or more computer systems 1000 mayperform without substantial spatial or temporal limitation one or moresteps of one or more methods described or illustrated herein. As anexample and not by way of limitation, one or more computer systems 1000may perform in real time or in batch mode one or more steps of one ormore methods described or illustrated herein. One or more computersystems 1000 may perform at different times or at different locationsone or more steps of one or more methods described or illustratedherein, where appropriate.

In particular embodiments, computer system 1000 includes a processor1002, memory 1004, storage 1006, an input/output (I/O) interface 1008, acommunication interface 1010, and a bus 1012. Although this disclosuredescribes and illustrates a particular computer system having aparticular number of particular components in a particular arrangement,this disclosure contemplates any suitable computer system having anysuitable number of any suitable components in any suitable arrangement.

In particular embodiments, processor 1002 includes hardware forexecuting instructions, such as those making up a computer program. Asan example and not by way of limitation, to execute instructions,processor 1002 may retrieve (or fetch) the instructions from an internalregister, an internal cache, memory 1004, or storage 1006; decode andexecute them; and then write one or more results to an internalregister, an internal cache, memory 1004, or storage 1006. In particularembodiments, processor 1002 may include one or more internal caches fordata, instructions, or addresses. This disclosure contemplates processor1002 including any suitable number of any suitable internal caches,where appropriate. As an example and not by way of limitation, processor1002 may include one or more instruction caches, one or more datacaches, and one or more translation lookaside buffers (TLBs).Instructions in the instruction caches may be copies of instructions inmemory 1004 or storage 1006, and the instruction caches may speed upretrieval of those instructions by processor 1002. Data in the datacaches may be copies of data in memory 1004 or storage 1006 forinstructions executing at processor 1002 to operate on; the results ofprevious instructions executed at processor 1002 for access bysubsequent instructions executing at processor 1002 or for writing tomemory 1004 or storage 1006; or other suitable data. The data caches mayspeed up read or write operations by processor 1002. The TLBs may speedup virtual-address translation for processor 1002. In particularembodiments, processor 1002 may include one or more internal registersfor data, instructions, or addresses. This disclosure contemplatesprocessor 1002 including any suitable number of any suitable internalregisters, where appropriate. Where appropriate, processor 1002 mayinclude one or more arithmetic logic units (ALUs); be a multi-coreprocessor; or include one or more processors 1002. Although thisdisclosure describes and illustrates a particular processor, thisdisclosure contemplates any suitable processor.

In particular embodiments, memory 1004 includes main memory for storinginstructions for processor 1002 to execute or data for processor 1002 tooperate on. As an example and not by way of limitation, computer system1000 may load instructions from storage 1006 or another source (such as,for example, another computer system 1000) to memory 1004. Processor1002 may then load the instructions from memory 1004 to an internalregister or internal cache. To execute the instructions, processor 1002may retrieve the instructions from the internal register or internalcache and decode them. During or after execution of the instructions,processor 1002 may write one or more results (which may be intermediateor final results) to the internal register or internal cache. Processor1002 may then write one or more of those results to memory 1004. Inparticular embodiments, processor 1002 executes only instructions in oneor more internal registers or internal caches or in memory 1004 (asopposed to storage 1006 or elsewhere) and operates only on data in oneor more internal registers or internal caches or in memory 1004 (asopposed to storage 1006 or elsewhere). One or more memory buses (whichmay each include an address bus and a data bus) may couple processor1002 to memory 1004. Bus 1012 may include one or more memory buses, asdescribed below. In particular embodiments, one or more memorymanagement units (MMUs) reside between processor 1002 and memory 1004and facilitate accesses to memory 1004 requested by processor 1002. Inparticular embodiments, memory 1004 includes random access memory (RAM).This RAM may be volatile memory, where appropriate. Where appropriate,this RAM may be dynamic RAM (DRAM) or static RAM (SRAM). Moreover, whereappropriate, this RAM may be single-ported or multi-ported RAM. Thisdisclosure contemplates any suitable RAM. Memory 1004 may include one ormore memories 1004, where appropriate. Although this disclosuredescribes and illustrates particular memory, this disclosurecontemplates any suitable memory.

In particular embodiments, storage 1006 includes mass storage for dataor instructions. As an example and not by way of limitation, storage1006 may include an HDD, a floppy disk drive, flash memory, an opticaldisc, a magneto-optical disc, magnetic tape, or a Universal Serial Bus(USB) drive or a combination of two or more of these. Storage 1006 mayinclude removable or non-removable (or fixed) media, where appropriate.Storage 1006 may be internal or external to computer system 1000, whereappropriate. In particular embodiments, storage 1006 is non-volatile,solid-state memory. In particular embodiments, storage 1006 includesread-only memory (ROM). Where appropriate, this ROM may bemask-programmed ROM, programmable ROM (PROM), erasable PROM (EPROM),electrically erasable PROM (EEPROM), electrically alterable ROM (EAROM),or flash memory or a combination of two or more of these. Thisdisclosure contemplates mass storage 1006 taking any suitable physicalform. Storage 1006 may include one or more storage control unitsfacilitating communication between processor 1002 and storage 1006,where appropriate. Where appropriate, storage 1006 may include one ormore storages 1006. Although this disclosure describes and illustratesparticular storage, this disclosure contemplates any suitable storage.

In particular embodiments, I/O interface 1008 includes hardware,software, or both providing one or more interfaces for communicationbetween computer system 1000 and one or more I/O devices. Computersystem 1000 may include one or more of these I/O devices, whereappropriate. One or more of these I/O devices may enable communicationbetween a person and computer system 1000. As an example and not by wayof limitation, an I/O device may include a keyboard, keypad, microphone,monitor, mouse, printer, scanner, speaker, still camera, stylus, tablet,touch screen, trackball, video camera, another suitable I/O device or acombination of two or more of these. An I/O device may include one ormore sensors. This disclosure contemplates any suitable I/O devices andany suitable I/O interfaces 1008 for them. Where appropriate, I/Ointerface 1008 may include one or more device or software driversenabling processor 1002 to drive one or more of these I/O devices. I/Ointerface 1008 may include one or more I/O interfaces 1008, whereappropriate. Although this disclosure describes and illustrates aparticular I/O interface, this disclosure contemplates any suitable I/Ointerface.

In particular embodiments, communication interface 1010 includeshardware, software, or both providing one or more interfaces forcommunication (such as, for example, packet-based communication) betweencomputer system 1000 and one or more other computer systems 1000 or oneor more networks. As an example and not by way of limitation,communication interface 1010 may include a network interface controller(NIC) or network adapter for communicating with an Ethernet or otherwire-based network or a wireless NIC (WNIC) or wireless adapter forcommunicating with a wireless network, such as a WI-FI network. Thisdisclosure contemplates any suitable network and any suitablecommunication interface 1010 for it. As an example and not by way oflimitation, computer system 1000 may communicate with an ad hoc network,a personal area network (PAN), a local area network (LAN), a wide areanetwork (WAN), a metropolitan area network (MAN), or one or moreportions of the Internet or a combination of two or more of these. Oneor more portions of one or more of these networks may be wired orwireless. As an example, computer system 1000 may communicate with awireless PAN (WPAN) (such as, for example, a BLUETOOTH WPAN), a WI-FInetwork, a WI-MAX network, a cellular telephone network (such as, forexample, a Global System for Mobile Communications (GSM) network), orother suitable wireless network or a combination of two or more ofthese. Computer system 1000 may include any suitable communicationinterface 1010 for any of these networks, where appropriate.Communication interface 1010 may include one or more communicationinterfaces 1010, where appropriate. Although this disclosure describesand illustrates a particular communication interface, this disclosurecontemplates any suitable communication interface.

In particular embodiments, bus 1012 includes hardware, software, or bothcoupling components of computer system 1000 to each other. As an exampleand not by way of limitation, bus 1012 may include an AcceleratedGraphics Port (AGP) or other graphics bus, an Enhanced Industry StandardArchitecture (EISA) bus, a front-side bus (FSB), a HYPERTRANSPORT (HT)interconnect, an Industry Standard Architecture (ISA) bus, an INFINIBANDinterconnect, a low-pin-count (LPC) bus, a memory bus, a Micro ChannelArchitecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, aPCI-Express (PCIe) bus, a serial advanced technology attachment (SATA)bus, a Video Electronics Standards Association local (VLB) bus, oranother suitable bus or a combination of two or more of these. Bus 1012may include one or more buses 1012, where appropriate. Although thisdisclosure describes and illustrates a particular bus, this disclosurecontemplates any suitable bus or interconnect.

Herein, a computer-readable non-transitory storage medium or media mayinclude one or more semiconductor-based or other integrated circuits(ICs) (such, as for example, field-programmable gate arrays (FPGAs) orapplication-specific ICs (ASICs)), hard disk drives (HDDs), hybrid harddrives (HHDs), optical discs, optical disc drives (ODDs),magneto-optical discs, magneto-optical drives, floppy diskettes, floppydisk drives (FDDs), magnetic tapes, solid-state drives (SSDs),RAM-drives, SECURE DIGITAL cards or drives, any other suitablecomputer-readable non-transitory storage medium or media, or anysuitable combination of two or more of these, where appropriate. Acomputer-readable non-transitory storage medium or media may bevolatile, non-volatile, or a combination of volatile and non-volatile,where appropriate.

Herein, “or” is inclusive and not exclusive, unless expressly indicatedotherwise or indicated otherwise by context. Therefore, herein, “A or B”means “A, B, or both,” unless expressly indicated otherwise or indicatedotherwise by context. Moreover, “and” is both joint and several, unlessexpressly indicated otherwise or indicated otherwise by context.Therefore, herein, “A and B” means “A and B, jointly or severally,”unless expressly indicated otherwise or indicated otherwise by context.

This disclosure encompasses all changes, substitutions, variations,alterations, and modifications to the example embodiments herein that aperson having ordinary skill in the art would comprehend. Moreover,reference in the appended claims to an apparatus or system or acomponent of an apparatus or system being adapted to, arranged to,capable of, configured to, enabled to, operable to, or operative toperform a particular function encompasses that apparatus, system,component, whether or not it or that particular function is activated,turned on, or unlocked, as long as that apparatus, system, or componentis so adapted, arranged, capable, configured, enabled, operable, oroperative.

Moreover, although this disclosure describes and illustrates respectiveembodiments herein as including particular components, elements,functions, operations, or steps, any of these embodiments may includeany combination or permutation of any of the components, elements,functions, operations, or steps described or illustrated anywhere hereinthat a person having ordinary skill in the art would comprehend.

What is claimed is:
 1. A method, performed by one or more firstelectronic devices, comprising: presenting a video in a user interfaceof a digital book in a first presentation mode of a plurality ofpresentation modes, each presentation mode of the plurality ofpresentation modes having a specific size for presenting a visualportion of the video and a specific volume for presenting an audioportion of the video; in response to a user interaction to startplayback of the video in the first presentation mode, automaticallytransitioning the video to a second presentation mode, comprising:changing the visual portion of the video from a first size of the firstpresentation mode to a second size of the second presentation mode, thefirst size being different from the second size, the first presentationmode being a same playback status as the second presentation mode, andthe second presentation mode being different from the first presentationmode, the second presentation mode being a full-screen mode in which thevideo is expanded to cover an entire screen of the device; and changingthe audio portion of the video from a first volume of the firstpresentation mode to a second volume of the second presentation mode,the first volume being different from the second volume; and upon an endof the playback of the video, automatically transitioning the video fromthe second presentation mode back to the first presentation mode,wherein when the second size of the second presentation mode is largerthan the first size of the first presentation mode, the second volume isautomatically adjusted to be higher than the first volume, and whereinwhen the second size of the second presentation mode is smaller than thefirst size of the first presentation mode, the second volume isautomatically adjusted to be lower than the first volume.
 2. The methodof claim 1, wherein the plurality of presentation modes comprises anindex mode, an on-page mode, and a full-screen mode.
 3. The method ofclaim 2, further comprising: while presenting the video in the indexmode, in response to a user single tapping or pinching open the video,transitioning the video from the index mode to the on-page mode; whilepresenting the video in the on-page mode, in response to the user singletapping or pinching open the video, transitioning the video from theon-page mode to the full-screen mode; while presenting the video in thefull-screen mode, in response to the user double tapping or pinchingclose the video, transitioning the video from the full-screen mode tothe on-page mode; and while presenting the video in the on-page mode, inresponse to the user double tapping or pinching close the video,transitioning the video from the on-page mode to the index mode.
 4. Themethod of claim 2, further comprising: while presenting the video in theon-page mode, in response to a user navigating away from auser-interface component including the video, recording a currentplayback position of the video; and gradually fading away the audioportion of the video; and while presenting the video in the on-pagemode, in response to the user navigating to the user-interface componentincluding the video, resuming playback of the video at the recordedplayback position of the video.
 5. The method of claim 2, furthercomprising while presenting the video in the on-page mode, visuallyindicating that the video is user interactive by floating the video ontop of a user-interface component including the video.
 6. The method ofclaim 1, further comprising while presenting the video in eachpresentation mode, associating a playback control icon with the video.7. One or more computer-readable non-transitory storage media embodyingsoftware that is operable when executed to: present a video in a userinterface of a digital book in a first presentation mode of a pluralityof presentation modes, each presentation mode of the plurality ofpresentation modes having a specific size for presenting a visualportion of the video and a specific volume for presenting an audioportion of the video; in response to a user interaction to startplayback of the video in the first presentation mode, automaticallytransitioning the video to a second presentation mode, comprising:change the visual portion of the video from a first size of the firstpresentation mode to a second size of the second presentation mode, thefirst size being different from the second size, the first presentationmode being a same playback status as the second presentation mode andthe second presentation mode being different from the first presentationmode, the second presentation mode being a full-screen mode in which thevideo is expanded to cover an entire screen of the device; and changethe audio portion of the video from a first volume of the firstpresentation mode to a second volume of the second presentation mode,the first volume being different from the second volume: and upon an endof the playback of the video, automatically transitioning the video fromthe second presentation mode back to the first presentation mode,wherein when the second size of the second presentation mode is largerthan the first size of the first presentation mode, the second volume isautomatically adjusted to be higher than the first volume, and whereinwhen the second size of the second presentation mode is smaller than thefirst size of the first presentation mode, the second volume isautomatically adjusted to be lower than the first volume.
 8. The mediaof claim 7, wherein the plurality of presentation modes comprises anindex mode, an on-page mode, and a full-screen mode.
 9. The media ofclaim 8, wherein the software is further operable to: while presentingthe video in the index mode, in response to a user single tapping orpinching open the video, transition the video from the index mode to theon-page mode; while presenting the video in the on-page mode, inresponse to the user single tapping or pinching open the video,transition the video from the on-page mode to the full-screen mode;while presenting the video in the full-screen mode, in response to theuser double tapping or pinching close the video, transition the videofrom the full-screen mode to the on-page mode; and while presenting thevideo in the on-page mode, in response to the user double tapping orpinching close the video, transition the video from the on-page mode tothe index mode.
 10. The media of claim 8, wherein the software isfurther operable to: while presenting the video in the on-page mode, inresponse to a user navigating away from a user-interface componentincluding the video, record a current playback position of the video;and gradually fade away the audio portion of the video; and whilepresenting the video in the on-page mode, in response to the usernavigating to the user-interface component including the video, resumeplayback of the video at the recorded playback position of the video.11. The media of claim 8, wherein the software is further operable towhile presenting the video in the on-page mode, visually indicate thatthe video is user interactive by floating the video on top of auser-interface component including the video.
 12. The media of claim 7,wherein the software is further operable to while presenting the videoin each presentation mode, associate a playback control icon with thevideo.
 13. A system comprising: a memory comprising instructionsexecutable by one or more processors; and the one or more processorscoupled to the memory and operable to execute the instructions, the oneor more processors being operable when executing the instructions to:present a video in a user interface of a digital book in a firstpresentation mode of a plurality of presentation modes, eachpresentation mode of the plurality of presentation modes having aspecific size for presenting a visual portion of the video and aspecific volume for presenting an audio portion of the video; inresponse to a user interaction to start playback of the video in thefirst presentation mode, automatically transitioning the video to asecond presentation mode, comprising: change the visual portion of thevideo from a first size of the first presentation mode to a second sizeof the second presentation mode, the first size being different from thesecond size, the first presentation mode being a same playback status asthe second presentation mode and the second presentation mode beingdifferent from the first presentation mode, the second presentation modebeing a full-screen mode in which the video is expanded to cover anentire screen of the device; and change the audio portion of the videofrom a first volume of the first presentation mode to a second volume ofthe second presentation mode, the first volume being different from thesecond volume; and upon an end of the playback of the video,automatically transitioning the video from the second presentation modeback to the first presentation mode, wherein when the second size of thesecond presentation mode is larger than the first size of the firstpresentation mode, the second volume is automatically adjusted to behigher than the first volume, and wherein when the second size of thesecond presentation mode is smaller than the first size of the firstpresentation mode, the second volume is automatically adjusted to belower than the first volume.
 14. The system of claim 13, wherein theplurality of presentation modes comprises an index mode, an on-pagemode, and a full-screen mode.
 15. The system of claim 14, the processorsare further operable when executing the instructions to: whilepresenting the video in the index mode, in response to a user singletapping or pinching open the video, transition the video from the indexmode to the on-page mode; while presenting the video in the on-pagemode, in response to the user single tapping or pinching open the video,transition the video from the on-page mode to the full-screen mode;while presenting the video in the full-screen mode, in response to theuser double tapping or pinching close the video, transition the videofrom the full-screen mode to the on-page mode; and while presenting thevideo in the on-page mode, in response to the user double tapping orpinching close the video, transition the video from the on-page mode tothe index mode.
 16. The system of claim 14, the processors are furtheroperable when executing the instructions to: while presenting the videoin the on-page mode, in response to a user navigating away from auser-interface component including the video, record a current playbackposition of the video; and gradually fade away the audio portion of thevideo; and while presenting the video in the on-page mode, in responseto the user navigating to the user-interface component including thevideo, resume playback of the video at the recorded playback position ofthe video.
 17. The system of claim 14, the processors are furtheroperable when executing the instructions to while presenting the videoin the on-page mode, visually indicate that the video is userinteractive by floating the video on top of a user-interface componentincluding the video.